home *** CD-ROM | disk | FTP | other *** search
/ Winzipper / Winzipper_ISO.iso / programming / oracle7 7.2 / NET / NMP22 / NMP22.VRF < prev    next >
Encoding:
Text File  |  1995-10-13  |  5.3 KB  |  128 lines

  1. /* Copyright (c) Oracle Corporation 1994.  All Rights Reserved */
  2. /*****************************************************************************
  3.   NAME
  4.     nmp22.vrf - Windows 95 V3 installation verification script for 
  5.                 NMP Protocol Adapter.
  6.  
  7.   DESCRIPTION
  8.     This script checks dependencies and environment settings for installation
  9.     of the Windows 95 NMP product.
  10.  
  11.   OWNER
  12.     Lav Jain
  13.  
  14.   MODIFIED    DD-MMM-YY Reason
  15.     trodgers  10-APR-92 Created.
  16.     zkhan     11-AUG-93 Modified for SQLNET and for using V3.0.9.3.2 or later
  17.             of the installer.
  18.     eflores   06-APR-94 Modified for Windows NT.
  19.     ljain     07-JUL-95 Modified for Windows 95.
  20. *****************************************************************************/
  21. {
  22.  { doit = execute("%installer_home%\win95.vrf"); }
  23.   [
  24.     'UNBOUND_VARIABLE:
  25.       {
  26.         required_version = product_version(w95instver);
  27.         temp = explode(required_version,".");
  28.         required_version = implode(list(first(temp),first(rest(temp)),
  29.                                         first(rest(rest(temp))),
  30.                                         first(rest(rest(rest(temp))))),".");
  31.         signal('failure,instantiate(nls("instver_too_early1","The version of
  32. the Installer currently running is %%installer_version%%. The installation you
  33. have chosen requires version %%required_version%% or later. Please run version
  34. %%required_version%% or later in order to perform this installation.")));
  35.       }
  36.   ]
  37.  
  38.  
  39.  if (not(doit) && (version_status == 'reinstall))
  40.     doit = TRUE;    
  41.  
  42.  if (doit)
  43.  {
  44.     protocol_prompt = nls("protocol_prompt", "The NetBEUI network protocol is currently not installed on your machine. Oracle Named Pipes Protocol Adapter cannot function without this network protocol. Would you still like to install it?");
  45.     protocol_prompt_content = nls("protocol_prompt_content", "NetBEUI Protocol Not Installed");
  46.     protocol_prompt_help = nls("protocol_prompt_help", "The NetBEUI network protocol is currently not installed on your machine. Oracle Named Pipes Protocol Adapter cannot function without this network protocol.
  47.  
  48. The NetBEUI network protocol enables data transfer in a Microsoft Network environment or LAN Manager environment.
  49.  
  50. If you are not familiar with network transport protocols, please contact your network administrator.
  51.  
  52. YES installs the Oracle Named Pipes Protocol Adapter.
  53.  
  54. NO does not install the Oracle Named Pipes Protocol Adapter.");
  55.  
  56.     yes_ans = nls("yes_ans","Yes");
  57.     no_ans = nls("no_ans","No");  
  58.     yes_no_list = list(yes_ans, no_ans);
  59.  
  60.    if(not(win32_key_exists("HKEY_LOCAL_MACHINE",
  61.                            "System\CurrentControlSet\Services\VxD\NETBEUI")))
  62.    {
  63.       ans = single_selection_dialog(protocol_prompt, yes_no_list, no_ans, protocol_prompt_content, protocol_prompt_help);
  64.       if (ans == no_ans)
  65.       {
  66.         extract(products_for_installation, w95nmp22);
  67.         doit = FALSE;
  68.       }
  69.    }
  70.  }
  71.  
  72.  
  73.  
  74.  if (doit)
  75.   {
  76.  
  77.     vrf_ratchet = "2.2.2.0.0";
  78.  
  79.     net2_register = nls("net2_register","Registering %%product_label%%...");
  80.  
  81.     net2_install_script = nls("net2_install_script","Installing %%product_label%% Installation Scripts...");
  82.  
  83.     net2_install_dll = nls("net2_install_dll","Installing %%product_label%% DLL's...");
  84.  
  85.     no_protocol = nls("no_protocol", "Oracle Named Pipes Protocol Adapter not installed.");
  86.  
  87.     nmp22_expl = nls("nmp22_expl", "A %%product_label%% DLL (NTNNT.DLL) is being used on this machine. Please stop all Oracle applications that are using %%product_label%% before installing %%product_label%%.
  88.  
  89. Silent mode installation of %%product_label%% terminated.");
  90.     nmp22_inst = instantiate(nls("nmp22_inst", "A %%product_label%% DLL (NTNNT.DLL) is being used on this machine. Please stop all Oracle applications that are using %%product_label%% before installing %%product_label%%.
  91.  
  92. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%.
  93.  
  94. Choose CANCEL to terminate the installation of %%product_label%%.
  95.     "));
  96.     nmp22_inst_term = instantiate(nls("nmp22_inst_term", "%%product_label%% installation terminated."));
  97.     nmp22_inst_content = instantiate(nls("nmp22_inst_content", "%%product_label%% DLL Used"));
  98.     nmp22_inst_help = instantiate(nls("nmp22_inst_help", "The Oracle Installer has detected that a %%product_label%% DLL (NTNNT.DLL) is being used on this machine.  Please stop all Oracle applications that are using %%product_label%% before installing %%product_label%%.
  99.  
  100. Choose OK after you have closed all Oracle applications and want to resume the installation of %%product_label%%.
  101.  
  102. Choose CANCEL to terminate the installation of %%product_label%%.
  103.     "));
  104.  
  105.    done = FALSE;
  106.    while(not(done))
  107.    { move_file("%ORACLE_HOME%\bin\ntnnt.dll", "%ORACLE_HOME%\bin\ntnnt.dll"); done = TRUE;}
  108.     [ 'PERMISSION_DENIED, 'INVALID_FILE_NAME, 'OS_ERROR, 'WRITE_ERROR:
  109.       {
  110.         if (silent_mode)
  111.           signal('FAILURE, instantiate(nmp22_expl));
  112.         else
  113.           information_dialog(instantiate(nmp22_inst), nmp22_inst_content, instantiate(nmp22_inst_help));
  114.       }
  115.       'FILE_NOT_FOUND:
  116.         done = TRUE;
  117.     ]                       
  118.    
  119.  
  120.     return(sum(dll,deinstl));
  121.    }
  122.    else
  123.    {
  124.     refresh_map_file = FALSE;
  125.     return(0);
  126.    }
  127. }
  128.